package com.example.lib_base.base.network.interecpter;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

/**
 * @author yedong
 * @date 2019/1/15
 */

public class HeaderInteceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {
        Request original = chain.request();

        // Request customization: add request headers
        Request.Builder requestBuilder = original.newBuilder();

        return chain.proceed(requestBuilder.build());

    }
}
